package cn.sdack.go.users.service;

import cn.sdack.go.common.entities.users.AuthorityEntity;
import cn.sdack.go.common.entities.users.RoleEntity;
import cn.sdack.go.common.entities.users.UserEntity;

import java.util.List;

/**
 * @author sdack
 * @date 2024/1/9
 */
public interface UserRoleService {


    List<AuthorityEntity> userAuthorityList(Long gid,Long userId) throws IllegalAccessException;

    List<RoleEntity> userRoleList(Long gid,Long userId) throws IllegalAccessException;

    List<UserEntity> roleUserList(String roleKey) throws IllegalAccessException;

    void authority(Long gid,Long userId, List<String> list) throws Exception;

    void setAdmin(Long userId) throws Exception;

}
